<include file="Public/head"/>

<body class="no-skin">

<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
            <div class="page-content">
                <div class="row">
                     <div class="space-4"></div>
                     <!--startprint1-->
                     <div class="cf">
                           <h2 class=" text-center"> 平台进账汇总 </h2>
                           <h5>时&nbsp;&nbsp;&nbsp;&nbsp;间&nbsp;&nbsp;&nbsp;&nbsp;段：{$dateS}&nbsp;至&nbsp;{$dateE}</h5>
                      </div>
                     <div class="space-4"></div>
                      <table class="table table-striped table-bordered" >
                            <thead>
                            <tr>
                                <th class="center">财务分类</th>
                                <th class="center">总共金额</th>
                            </tr>
                            </thead>
                            <tbody>
                                <tr>
                                <?php if(empty($allmoney)){ ?>
                                	<td class="center" colspan='2' style='color:red;'>改时间段没有入账记录！</td>
                                <?php  }else{ ?>
                                    <td class="center">{$name_type}财务汇总</td>
 					 				<td class="center">￥{$allmoney}</td>
 					 				<?php  } ?>				
                                </tr>
                            </tbody>
                        </table>
                     <div>
                     		<h2 class=" text-center"> 幼儿园进账列表  </h2>
                     		
                     </div>
                     
                    
                    <div class="space-4"></div>
                    
                      <table class="table table-striped table-bordered" >
                            <thead>
                           
                            <tr>
                            	
                            	<th class="center">ID</th>
                                <th class="center">幼儿园名称</th>
                                <th class="center">总共金额</th>
                                <th class="center">操作</th>
                            </tr>
                            </thead>
                            <tbody>

               					<?php if(!empty($yeymoney)) { ?>
               					<?php foreach($yeymoney as $k=>$v){ ?>
                                 <tr>
                                 	
                                 	<td  class='center'>
                                            <?php echo $k+1; ?>
                                 		
                                 	</td>
                                    <td class="center">{$v['name']}</td>
 					 <td class="center">{$v['price']}</td>				
                                    <td class="center"><a href="<?php echo U('detail',array('sc_id'=>$v['sc_id'],'dateS'=>$dateS,'dateE'=>$dateE));?>"><i
                                            class="ace-icon fa fa-pencil bigger-100"></i>详情</a>
                                     </td>
                                </tr>
                               
                               
                               <?php } ?>
                                <?php  }else{ ?>
                                	<tr>
                                	 	<td class="center" colspan='4' style='color:red;'>改时间段没有入账记录！</td>
                                	 </tr>
                                
                                <?php }?>
                            </tbody>
                        </table>
                    <!--endprint1-->
                    <!-- PAGE CONTENT ENDS -->
                </div><!-- /.col -->
            </div><!-- /.row -->

</div><!-- /.main-content -->
<script src="__PUBLIC__/qwadmin/js/jquery-1.9.1.min.js"></script>
<!-- inline scripts related to this page -->
<script type="text/javascript">
$(function(){
	window.print();
	history.back();
})
</script>
</body>
</html>
